package com.wyzz.hr.pojo;

import java.util.Date;
import java.util.List;

import com.wyzz.hr.base.ComonBeans;
import com.wyzz.hr.pojo.base.BasePerfplan;

public class Perfplan extends BasePerfplan {

	public Perfplan() {
	}

	public Perfplan(String ppId) {
		super(ppId);
	}

	public Perfplan(String ppId, Integer ppNo, Perfschema ppPsId,
			Perfplanperiod ppPppId, Employee ppEmpId, Department ppDeptId,
			PositionBase ppPbId, Integer ppEmpChoose, Integer ppStatus,
			Integer ppScoreRestrict, Employee ppCreateBy, Date ppCreateTime,
			Employee ppLastChangeBy, Date ppLastChangeTime) {
		super(ppId, ppNo, ppPsId, ppPppId, ppEmpId, ppDeptId, ppPbId,
				ppEmpChoose, ppStatus, ppScoreRestrict, ppCreateBy,
				ppCreateTime, ppLastChangeBy, ppLastChangeTime);
	}

	public String getPpEmpChooseMean() {
		return ppEmpChooseMean;
	}

	public void setPpEmpChoose(Integer ppEmpChoose) {
		super.setPpEmpChoose(ppEmpChoose);
		if (ppEmpChoose == null) {
			ppEmpChooseMean = null;
		} else {
			String mean = ComonBeans.getParameterValue(PROP_PP_EMP_CHOOSE,
					new String[] { ppEmpChoose.toString() });
			if (mean != null)
				ppEmpChooseMean = mean.trim();
			else
				ppEmpChooseMean = null;
		}
	}

	public void setPpStatus(Integer ppStatus) {
		super.setPpStatus(ppStatus);
		if (ppStatus == null) {
			ppStatusMean = null;
		} else {
			String mean = ComonBeans.getParameterValue(PROP_PP_STATUS,
					new String[] { ppStatus.toString() });
			if (mean != null)
				ppStatusMean = mean.trim();
			else
				ppStatusMean = null;
		}
	}

	public String getPpEmpName() {
		return ppEmpName;
	}

	public void setPpEmpName(String ppEmpName) {
		this.ppEmpName = ppEmpName;
	}

	public String getPpDeptName() {
		return ppDeptName;
	}

	public void setPpDeptName(String ppDeptName) {
		this.ppDeptName = ppDeptName;
	}

	public String getPpPbName() {
		return ppPbName;
	}

	public void setPpPbName(String ppPbName) {
		this.ppPbName = ppPbName;
	}

	public String getPpPsName() {
		return ppPsName;
	}

	public void setPpPsName(String ppPsName) {
		this.ppPsName = ppPsName;
	}

	public String getPpPppName() {
		return ppPppName;
	}

	public void setPpPppName(String ppPppName) {
		this.ppPppName = ppPppName;
	}

	public String getUseFlag() {
		return useFlag;
	}

	public void setUseFlag(String useFlag) {
		this.useFlag = useFlag;
	}

	public String getAllowPlanScore() {
		return allowPlanScore;
	}

	public void setAllowPlanScore(String allowPlanScore) {
		this.allowPlanScore = allowPlanScore;
	}

	public String getAllowActualScore() {
		return allowActualScore;
	}

	public void setAllowActualScore(String allowActualScore) {
		this.allowActualScore = allowActualScore;
	}

	public List getPlanScoreList() {
		return planScoreList;
	}

	public void setPlanScoreList(List planScoreList) {
		this.planScoreList = planScoreList;
	}

	public List getTitleList() {
		return titleList;
	}

	public void setTitleList(List titleList) {
		this.titleList = titleList;
	}

	public List getLog() {
		return log;
	}

	public void setLog(List log) {
		this.log = log;
	}

	public String getPpStatusMean() {
		return ppStatusMean;
	}

	public String getPpRelation() {
		return ppRelation;
	}

	public void setPpRelation(String ppRelation) {
		ppRelationInt = Integer.valueOf(Integer.parseInt(ppRelation));
		String mean = ComonBeans.getParameterValue(
				Perfplanemp.PROP_PPE_RELATION, new String[] { ppRelation });
		if (mean != null)
			this.ppRelation = mean.trim();
		else
			this.ppRelation = "\u5176\u4ED6";
	}

	public Integer getPpRelationInt() {
		return ppRelationInt;
	}

	public void setPpRelationInt(Integer ppRelationInt) {
		this.ppRelationInt = ppRelationInt;
	}

	public String getEmpComments() {
		return empComments;
	}

	public void setEmpComments(String empComments) {
		this.empComments = empComments;
	}

	public String getEmpAttatchment() {
		return empAttatchment;
	}

	public void setEmpAttatchment(String empAttatchment) {
		this.empAttatchment = empAttatchment;
	}

	public String getDownLoadName() {
		return downLoadName;
	}

	public void setDownLoadName(String downLoadName) {
		this.downLoadName = downLoadName;
	}

	public String getPpEmpFormula() {
		return ppEmpFormula;
	}

	public void setPpEmpFormula(String ppEmpFormula) {
		this.ppEmpFormula = ppEmpFormula;
	}

	private static final long serialVersionUID = 1L;
	private String ppEmpFormula;
	private String ppEmpChooseMean;
	private String ppStatusMean;
	private String ppRelation;
	private Integer ppRelationInt;
	private String ppEmpName;
	private String ppDeptName;
	private String ppPbName;
	private String ppPsName;
	private String ppPppName;
	private String useFlag;
	private String allowPlanScore;
	private String allowActualScore;
	private List titleList;
	private List log;
	private String empComments;
	private String empAttatchment;
	private String downLoadName;
	private List planScoreList;
}
